﻿using Common.Extension;

namespace DesignModeConsole.行为型.观察者模式.EventBusSample;

public class TestHandler2 : IEventHandler<TestEventData>
{
    public void Handle(TestEventData eventData)
    {
        Console.WriteLine($"执行 testhandler  事件id：{eventData.Id}  参数为{eventData.ToJson()}");
    }
}

public class TestEventData : EventData
{
    public string EventSource { get; set; }
}